<template>
	<view class="list_box">
		<uni-nav-bar fixed status-bar :border="false" left-icon="left" :title="title" @clickLeft="back" />

		<todayPrize v-if="isLoad&item.type==3" :isAll="isAll" :item="item" />
		<luckyPlaza v-if="isLoad&item.type==7" :isAll="isAll" :item="item" />
		<luckyPlaza v-if="isLoad&item.type==4" :isAll="isAll" :item="item" />
	</view>
</template>

<script>
	import todayPrize from "@/components/todayPrize"
	import luckyPlaza from "@/components/luckyPlaza"
	import pointShop from "@/components/pointShop"
	export default {
		props: [],
		data() {
			return {
				isTodayPrize: false,
				isLuckyPlaza: false,
				isLoad: false,
				isAll: true,
				item: {},
				title: ""
			}
		},
		components: {
			todayPrize,
			luckyPlaza,
			pointShop
		},
		methods: {
			back() {
				uni.navigateBack()
			}
		},

		onLoad(options) {
			this.isLoad = true;
			var moduleList = JSON.parse(uni.$store.state.moduleList);
			moduleList.forEach((d) => {
				if (d.id == options.id) {
					this.item = d
				}
			})
			this.title = this.item.name;

		}
	}
</script>

<style>
</style>